
#region Using Statements

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Xml.Linq;
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Graphics;
    using Microsoft.Xna.Framework.Content.Pipeline;
    using Microsoft.Xna.Framework.Content.Pipeline.Graphics;

#endregion


namespace HumanElement.Xna.Construct.ContentPipeline
{
    using TImport = System.Xml.Linq.XDocument;

    /// <summary>
    /// This class will be instantiated by the XNA Framework Content Pipeline
    /// to import a file from disk into the specified type, TImport.
    /// </summary>
    [ContentImporter(".rfx", DisplayName = "RenderMonkey Surface Importer", DefaultProcessor = "")]
    public class RenderMonkeyImporter : ContentImporter<TImport>
    {
        /// <summary>
        /// Called by the framework when importing a game asset.
        /// </summary>
        /// <param name="filename">Name of a game asset file.</param>
        /// <param name="context">Contains information for importing a game asset, such as a logger interface.</param>
        /// <returns>Resulting game asset.</returns>
        public override TImport Import(string filename, ContentImporterContext context)
        {
            var xdoc = XDocument.Load(filename);

            context.Logger.LogMessage(xdoc.ToString());

            return xdoc;
        }
        
    }
}
